﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="HQWeb.Login.Login" %>

<%--<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">--%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../Styles/Login/skin.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        body
        {
            margin-left: 0px;
            margin-top: 0px;
            margin-right: 0px;
            margin-bottom: 0px;
            background-color: #1D3647;
        }
    </style>
    <script language="javascript" type="text/javascript">
// <![CDATA[

        function funCheckMessage() {
            var varTemp = document.getElementById("username");
            if (varTemp.value.replace(/(\s*$)/g, "") == "") {
                alert("用户名不能为空！");
                varTemp.focus();
                return false;
            }
            varTemp = document.getElementById("password");
            if (varTemp.value.replace(/(\s*$)/g, "") == "") {
                alert("用户密码不能为空！");
                varTemp.focus();
                return false;
            }
            return true;
        }

        function cs_onclick() {
            document.getElementById("username").value = "";
            document.getElementById("password").value = "";
            document.getElementById("username").focus();

        }

// ]]>
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table width="100%" height="166" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td height="42" valign="top">
                    <table width="100%" height="42" border="0" cellpadding="0" cellspacing="0" class="login_top_bg">
                        <tr>
                            <td width="1%" height="21">
                                &nbsp;
                            </td>
                            <td height="42">
                                &nbsp;
                            </td>
                            <td width="17%">
                                &nbsp;
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td valign="top">
                    <table width="100%" height="532" border="0" cellpadding="0" cellspacing="0" class="login_bg">
                        <tr>
                            <td width="1%">
                                &nbsp;
                            </td>
                            <td width="50%" valign="bottom">
                                <table width="50%" height="59" border="0" align="center" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td width="4%">
                                            &nbsp;
                                        </td>
                                        <td width="96%" height="38">
                                            &nbsp; &nbsp; &nbsp;<span class="login_txt_bt">喜来婚庆管理系统</span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td height="21">
                                            <table cellspacing="0" cellpadding="0" width="100%" border="0" id="table211" height="328">
                                                <tr>
                                                    <td height="164" colspan="2" align="middle">
                                                        <table cellspacing="0" cellpadding="0" width="100%" border="0" height="143" id="table212">
                                                            <tr>
                                                                <td width="60px" height="38" class="top_hui_text">
                                                                    <span class="login_txt">用户名：</span>
                                                                </td>
                                                                <td height="38" colspan="2" class="top_hui_text">
                                                                    <input id="username" class="editbox4" value="" size="20" runat="server" />
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td width="60px" height="35" class="top_hui_text">
                                                                    <span class="login_txt">密 码：</span>
                                                                </td>
                                                                <td height="35" colspan="2" class="top_hui_text">
                                                                    <input class="editbox4" type="password" size="20" id="password" runat="server" />
                                                                    <img src="../Images/Login/luck.gif" width="19" height="18" />
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td width="60px" height="35" class="top_hui_text">
                                                                    <span class="login_txt">类 型：</span>
                                                                </td>
                                                                <td height="35" colspan="2" class="top_hui_text">
                                                                    <asp:DropDownList ID="dropType" runat="server">
                                                                    <asp:ListItem Text="PC" Value="pc"></asp:ListItem> 
                                                                    <asp:ListItem Text="IPAD" Value="ipad"></asp:ListItem>
                                                                    </asp:DropDownList>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td height="35" colspan="3">
                                                                    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
                                                                    <asp:Button ID="btnSummit" runat="server" Text="登 入" class="button" OnClick="btnSummit_Click"
                                                                        OnClientClick=" return funCheckMessage()" />
                                                                    &nbsp;&nbsp;
                                                                    <input name="cs" type="button" class="button" id="cs" value="重 填" onclick="showConfirmMsg1()"
                                                                        onclick="return cs_onclick()">
                                                                </td>
                                                            </tr>
                                                        </table>
                                                        <br />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td width="433" height="164" align="right" valign="bottom">
                                                        <img src="../Images/Login/login-wel.gif" width="242" height="138">
                                                    </td>
                                                    <td width="57" align="right" valign="bottom">
                                                        &nbsp;
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td height="20">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="login-buttom-bg">
                        <tr>
                            <td align="center">
                                <span class="login-buttom-txt">Copyright &copy; 2011-2012 </span>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
